package com.itelite.domain.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/8/8-15:14
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class UserVo implements Serializable {

    private static final long serialVersionUID = 2797539049843186149L;
    @NotNull(message = "用户编号不能为空")
    private Integer userId;
    private String username;
    @NotBlank(message = "真实姓名不能为空")
    private String realName;
    @NotBlank(message = "学号不能为空")
    private String studentId;
    private Integer groupId;
    private String groupName;
    @NotNull(message = "年级不能为空")
    private Integer grade;
    private String email;
    private String mobile;
    private String qq;
    @NotNull(message = "性别不能为空")
    private Integer gender;
    //身份（组员、组长、负责人）
    private String identity;

}
